export default {
    props: {
        columns: Array,
        /*
            data 与 http、params等配置只能二选一
        */
        data: Array,
        params: {
            type: Object,
            default: () => {},
        },
        http: Function,
        // 重新加载数据 --- > 初始化
        isReload: {
            type: Boolean,
            default: false
        },
        selectedKeys: Array,
        rowKey: {
            type: [String, Function],
            required: true,
        },
        dataTotal: {
            type: Number,
            default: 0
        },
        // 懒加载
        isLazy: {
            type: Boolean,
            default: false,
        },
        // 勾选
        selection: {
            type: Boolean,
            default: true
        },
        // 序号
        serial: {
            type: Boolean,
            default: true
        },
        // 见 pagination 属性
        pagination: {
            type: [Object, Boolean],
            default: () => ({
                position: "bottom",
                showSizeChanger: true,
                showQuickJumper: true,
                showTotal: (total) => `共 ${total} 条`,
            }),
        },
        // 见 pagination 属性
        pageSizeOptions: {
            type: Array,
            default: () => ["10", "20", "30", "40"],
        },
        showAction: {
            type: Boolean,
            default: true
        },
        justify: {
            type: String,
            default: "end",
        },
    },
};
